package com.linciping.ffmpegsample;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Example of a call to a native method
        Button btnGetConfig=findViewById(R.id.btn_get_config);
        final TextView tvFFmepgConfig=findViewById(R.id.tv_ffmepg_config);
        btnGetConfig.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                tvFFmepgConfig.setText(FFmpegUtil.getFFmpegConfig());
            }
        });
    }
}
